<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<script type="text/javascript">
    $(function() {
        $('#shopImagesEditForm').form({
            url : '${path}/shopImages/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#shopImagesEditForm');
                    parent.$.messager.alert('错误', eval(result.msg), 'error');
                }
            }
        });               
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 3px;">
        <form id="shopImagesEditForm" method="post">
            <table class="grid">
                              <tr>
                                 <input name="imageId" type="hidden"  value="${shopImages.imageId}">
                                              <tr>
                               </tr>
                <tr>
                    <td>图片名称</td>
                    <td>                    	
						                        <input name="imageName" type="text" class="easyui-validatebox" data-options="required:true" value="${shopImages.imageName}"/>
                                           </td>
                </tr>
                                             <tr>
                               </tr>
                <tr>
                    <td>图片大小</td>
                    <td>                    	
						                        <input name="imageSize" type="text" class="easyui-validatebox" data-options="required:true" value="${shopImages.imageSize}"/>
                                           </td>
                </tr>
                                             <tr>
                               </tr>
                <tr>
                    <td>图片地址</td>
                    <td>                    	
						                        <input name="imageUrl" type="text" class="easyui-validatebox" data-options="required:true" value="${shopImages.imageUrl}"/>
                                           </td>
                </tr>
                                             <tr>
                               </tr>
                <tr>
                    <td>上传时间</td>
                    <td>                    	
						                        <input name="createTime" type="text" class="easyui-validatebox" data-options="required:true" value="${shopImages.createTime}"/>
                                           </td>
                </tr>
                                             <tr>
                               </tr>
                <tr>
                    <td>上传人编号</td>
                    <td>                    	
						                        <input name="createUserId" type="text" class="easyui-validatebox" data-options="required:true" value="${shopImages.createUserId}"/>
                                           </td>
                </tr>
                                             <tr>
                               </tr>
                <tr>
                    <td>图片描述</td>
                    <td>                    	
						                        <input name="imageContent" type="text" class="easyui-validatebox" data-options="required:true" value="${shopImages.imageContent}"/>
                                           </td>
                </tr>
                                             <tr>
                               </tr>
                <tr>
                    <td>图片状态(0:无效，1：有效：2：删除)</td>
                    <td>                    	
						                        <input name="imageStatus" type="text" class="easyui-validatebox" data-options="required:true" value="${shopImages.imageStatus}"/>
                                           </td>
                </tr>
                                             <tr>
                               </tr>
                <tr>
                    <td></td>
                    <td>                    	
						                    </td>
                </tr>
                                             <tr>
                               </tr>
                <tr>
                    <td>图片类型</td>
                    <td>                    	
						                        <input name="imageType" type="text" class="easyui-validatebox" data-options="required:true" value="${shopImages.imageType}"/>
                                           </td>
                </tr>
                                          </table>
        </form>
    </div>
</div>